package com.htu.model.impl;

import com.htu.domain.Order;
import com.htu.model.IOrderModel;
import com.htu.service.IOrderService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class OrderModelImpl implements IOrderModel
{
    @Autowired
    private IOrderService service;

    @Override
    public List<Order> doOrderQueryAll()
    {
        return service.doOrderQueryAll();
    }

    @Override
    public boolean doOrderUpdate(Order order)
    {
        return service.doOrderUpdate(order);
    }

    @Override
    public boolean doOrderInsert(Order order)
    {
        return service.doOrderInsert(order);
    }

    @Override
    public boolean doOrderDelete(int orderId)
    {
        return service.doOrderDelete(orderId);
    }
}
